<?php
/**
 * Created by PhpStorm.
 * User: thanatos
 * Date: 2017/11/24
 * Time: 上午10:18
 */

namespace backend\controllers;

use Yii;
use common\models\UserCheck;
use yii\web\Controller;

class UserCheckController extends Controller{
    
    public function actionIndex()
    {
        $model = UserCheck::findOne(['id' => 1]);
        if(Yii::$app->request->isPost){
            $model->load(Yii::$app->request->post());
            $model->save();
        }
        
        return $this->render('index', ['model' => $model]);
    }
}